package com.edu.bhu.admin.domain;

import java.util.Date;

import com.edu.bhu.common.core.domain.entity.SysUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

/**
 * 核酸检测对象 pre_detection
 * 
 * @author yutianyang
 * @date 2022-04-23
 */
public class PreDetection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 核酸检测表 */
    private Long detectionId;

    /** 0阴性 1阳性 */
    @Excel(name = "0阴性 1阳性")
    private Long status;

    /** 检测日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检测日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date redate;

    /** 检测单位 */
    @Excel(name = "检测单位")
    private String area;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    private SysUser sysUser;

    public void setDetectionId(Long detectionId) 
    {
        this.detectionId = detectionId;
    }

    public Long getDetectionId() 
    {
        return detectionId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setRedate(Date redate) 
    {
        this.redate = redate;
    }

    public Date getRedate() 
    {
        return redate;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detectionId", getDetectionId())
            .append("status", getStatus())
            .append("redate", getRedate())
            .append("area", getArea())
            .append("userId", getUserId())
            .toString();
    }
}
